<template>
  <div id="app">
    <!--  {name: "Hello",query: {}} -->
    <!--传参一般用name的方式跳转-->
    <router-link to="/RoomList">房间列表</router-link> <br>
    <router-view/><!--路由指向哪儿，这里就显示谁-->
  </div>
</template>

<script>
export default {
  name: 'App',
  methods: {
    toUserList: function () {
      this.$router.push({path: '/userList', query: {x: 'y'}})
    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
